## 使用ORK的渲染工具
set(pjn LinemodTrainerTest)
cmake_minimum_required(VERSION 3.5)

FIND_PACKAGE(object_recognition_renderer REQUIRED)
FIND_PACKAGE(opencv_candidate REQUIRED)
add_definitions(-std=c++11)
aux_source_directory(. SRCLIST)
include_directories(${pjn} 
    ${object_recognition_renderer_INCLUDE_DIRS}
    /opt/ros/kinetic/include/opencv-3.3.1-dev
    .
    /usr/local/include/eigen3
)
link_directories(${pjn} 
    /opt/ros/kinetic/lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu
)

# ADD_LIBRARY(LinemodTrainer linemod_trainer.cpp)
add_executable(${pjn} ${SRCLIST})

target_link_libraries(${pjn} 
    ${opencv_candidate_LIBRARIES}
    ${object_recognition_renderer_LIBRARIES}
    -lboost_filesystem -lboost_system
    -lyaml-cpp
    -lopencv_imgcodecs3 -lopencv_imgproc3 -lopencv_core3
)

# INSTALL(TARGETS LinemodTrainer DESTINATION lib)
